<!--引用layui弹框插件-->
<!--<script src="/static/js/jquery-2.1.1.js"></script>-->
<!--<script src="/static/bootstrap/js/bootstrap.js"></script>-->
<!--<link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet"/>-->
<!--<link href="/static/layui/css/layui.css" rel="stylesheet"/>-->
<!--<script src="/static/layui/layui.js"></script>-->
<style>
    .control-text {
        padding-top: 7px
    }
    .tab-content{margin-top:10px;}
    .layui-form-radio{line-height:15px!important;}
    .layui-form-radio>i{font-size:18px;margin-right:3px;}
</style>

<div class="modal-body">

    <div class="container">
        <div class="updateAddress_bounced row">
            <div class="col-sm-12 title">
                <h3>市民充值</h3>
            </div>
            <div class="col-sm-12 content changes">


                <div class="form-group">
                    <label class="col-sm-4 control-label">粉丝</label>
                    <div class="col-sm-8 changes_avatar">
                        <img src="{$detail.avatar}">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-4 control-label">会员信息</label>
                    <div class="col-sm-8">
                        ID:{$detail.id} / 姓名:{$detail.nickname} / 手机号:{$detail.mobile}
                    </div>
                </div>

                <div class="row form-group">
                    <div class="span12">
                        <div class="tabbable" id="tabs-653539">
                            <ul class="nav nav-tabs">
                                <li class="active">
                                    <a href="#balance" data-toggle="tab">充值余额</a>
                                </li>
                                <li>
                                    <a href="#integral" data-toggle="tab">充值积分</a>
                                </li>
                            </ul>
                            <div class="tab-content" id="changes">

                                <input type="hidden" name="id" value="{$detail.id}">
                                <div class="tab-pane active" id="balance">

                                    <div class="form-group">
                                        <label class="col-sm-4 control-label">当前余额</label>
                                        <div class="col-sm-8 control-text">
                                            <p>{$detail.balance}</p>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-4 control-label">变动类型</label>
                                        <div class="col-sm-8 layui-form">
                                            <input type="radio" name="balance_status" value="1" title="增加" checked="">
                                            <input type="radio" name="balance_status" value="2" title="减少">
                                            <input type="radio" name="balance_status" value="3" title="最终余额">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-4 control-label">变动数目</label>
                                        <div class="col-sm-8">
                                            <input class="form-control" type="text" value="" name="balance_number">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-4 control-label">备注</label>
                                        <div class="col-sm-8">
                                                <textarea cols="39" rows="7" class="form-control"
                                                          name="balance_remark"></textarea>
                                        </div>
                                    </div>

                                </div>

                                <div class="tab-pane" id="integral">

                                    <input type="hidden" name="id" value="">
                                    <div class="tab-pane active">
                                        <div class="form-group">
                                            <label class="col-sm-4 control-label">当前积分</label>
                                            <div class="col-sm-8 control-text">
                                                <p>{$detail.integral}</p>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-4 control-label">变动类型</label>
                                            <div class="col-sm-8 layui-form">
                                                <input type="radio" name="integral_status" value="1" title="增加" checked="">
                                                <input type="radio" name="integral_status" value="2" title="减少">
                                                <input type="radio" name="integral_status" value="3" title="最终余额">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-4 control-label">变动数目</label>
                                            <div class="col-sm-8">
                                                <input class="form-control" type="text" value="" name="integral_number">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-4 control-label">备注</label>
                                            <div class="col-sm-8">
                                                <textarea cols="39" rows="7" class="form-control"
                                                          name="integral_remark"></textarea>
                                            </div>
                                        </div>


                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>


                </div>

            </div>


            <div class="modal-footer">
                <button type="button" class="layui-btn layui-btn-primary" close="true">关闭</button>
                <button type="button" class="layui-btn" _event="updateAddress">提交</button>
            </div>

        </div>

    </div>

    <script>
        layui.use(['form', 'layedit'], function () {
            var form = layui.form
            form.render();
        });
    </script>

